import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { UserEntity } from './entities/user.entity';
import { RoleModule } from 'src/role/role.module'
import { MenuModule } from '../menu/menu.module';
import { RedisModule } from 'src/redis/redis.module'

@Module({
  imports: [TypeOrmModule.forFeature([UserEntity]), RoleModule, MenuModule, RedisModule],
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService]
})
export class UserModule { }
